package com.skhu.as.service;

import java.util.List;

import org.springframework.jdbc.core.JdbcTemplate;

import com.skhu.as.dao.IndexD;
import com.skhu.as.domain.DutyHours;
import com.skhu.as.domain.FaultHandling;
import com.skhu.as.domain.FaultHandlingDomain;
import com.skhu.as.domain.PresentCondition;
import com.skhu.as.domain.PresentConditionDomain;
import com.skhu.as.domain.Worker;
import com.skhu.as.mapper.PresentConditionDomainM;

public class IndexS {

	private IndexD indexD;
	
	public void setIndexD(IndexD indexD) {
		this.indexD = indexD;
	}

	public List<FaultHandling> getUntreatedWork(){
		return indexD.getUntreatedWork();
	}
	
	public List<DutyHours> getDutyHoursList(){
		return indexD.getDutyHoursList();
	}

	public List<FaultHandling> getFaultHandlingByDate(String dateStr){
		return indexD.getFaultHandlingByDate(dateStr);
	}
	
	public List<FaultHandlingDomain> getFaultHandlingDomainByNo(String dateStr, String no){
		return indexD.getFaultHandlingDomainByNo(dateStr, no);
	}
	
	public List<FaultHandlingDomain> getFaultHandlingDomainByDate(String dateStr){
		return indexD.getFaultHandlingDomainByDate(dateStr);
	}
	
	public List<Worker> getWorkerList(){
		return indexD.getWorkerList();
	}
	
	public List<PresentConditionDomain> getPresentConditionListByList(int[] faultHandlingNoList){
		return indexD.getPresentConditionListByList(faultHandlingNoList);
	}
	
	public List<PresentConditionDomain> getPresentConditionList(String faultHandlingNo){
		return indexD.getPresentConditionList(faultHandlingNo);
	}
}
